<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button>点我请求数据</button>

    <script src="./lib/jquery-1.12.2.js"></script>
    <script>
        $("button").click(function(){
            $.ajax({
                type:"get",
                url: "http://localhost:8888/api/map",
                success: function(data){
                    console.log(data);
                }
            })
        });
    </script>
</body>
</html>